package ro.mfl.sockets.server;


import java.io.*;
import java.net.Socket;
import java.util.Collection;
import java.util.Map;

public class SendMessageThread {
    public void sendMessages(Map<String, Socket> clients, String message) throws IOException {
        Collection<Socket> clientCollection = clients.values();
        for(Socket clientSocket : clientCollection) {
            Writer writer = new OutputStreamWriter(clientSocket.getOutputStream());
            Reader reader = new InputStreamReader(clientSocket.getInputStream());
//            reader.r
        }
    }
}
